package com.huike.controller.system;

import com.huike.dto.SysDictNormalDTO;
import com.huike.dto.SysDictPageQueryDTO;
import com.huike.result.Result;
import com.huike.service.system.SysDictService;
import com.huike.vo.DictPageVO;
import lombok.extern.slf4j.Slf4j;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@Slf4j
@RequestMapping("system/dict/")
public class SysDictController {
    @Autowired
    private SysDictService sysDictService;
   /* @GetMapping("type/list")
    public Result<List<DictPageVO>> list( SysDictPageQueryDTO queryDTO)
    {
        return sysDictService.list(queryDTO);
    }*/
/*    @GetMapping("data/type/sys_normal_disable")
    public Result<List<SysDictNormalDTO>> listSysNormalDisable()
    {
        return sysDictService.listNormalDisable();
    }*/
//    /api/system/dict/data/type/sys_user_sex
    @GetMapping("data/type/sys_user_sex")
    public Result<List<SysDictNormalDTO>> dictSexTypeList()
    {
        return sysDictService.listNormalDisable();
    }
}
